home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / Sherlock 2.0 / DevLibSrc / Main_DevLib / LIBos.h < prev    next >
Text File  |  1994-07-16  |  2KB  |  69 lines

  1. /*
  2.     devlib: header file for LIBos.c.
  3.     
  4.     source:  LIBos.h
  5.     started: December 13, 1993.
  6.     version:
  7.         July 17, 1994.
  8.             Added ocblanks.
  9.         June 2, 1994.
  10.             Added ohex, oint, olong, opadptr and optr.
  11.         May 24, 1994.
  12.             Added ocnl and ocnls.
  13.             Added opads.
  14.         May 5, 1994.
  15.             Added out_bytes_offset variable.
  16.         April 21, 1994.
  17.             Added ofloat routine.
  18.         January 7, 1994.
  19. */
  20.  
  21. #ifndef LIBos_h_
  22. #define LIBos_h_
  23.  
  24. #pragma once
  25.  
  26. #include <LIBio.h>
  27.  
  28.     /* Routines that write to a binary file. */
  29.     
  30. void out_bytes(register char * byte_ptr, register ulong byte_count, char * dtag);
  31.  
  32.     /* Routines that write to a text file. */
  33.     
  34. void    oblank        (void);
  35. void    oblanks        (int n);
  36. void    ocblanks    (short n);
  37. void    ochar        (int c);
  38. void    ocnl        (void);
  39. void    ocnls        (int requested_newlines);
  40. void    ocs            (void);
  41. void    ofloat        (char * p, int size);
  42. void    ohex        (long hex);
  43. void    oint        (int i);
  44. void    olong        (long l);
  45. void    onl            (void);
  46. void    os            (char * s);
  47. void    opadhex        (long l, int field);
  48. void    opadlong    (long l, int field);
  49. void    opadptr        (void * p, int field);
  50. void    opads        (char * s, int field);
  51. void    opaduint    (uint ui, int field);
  52. void    opadulong    (ulong ul, int field);
  53. void    optr        (void * p);
  54. void    otab        (void);
  55. void    otabs        (int tab_count);
  56. void    ouint        (uint ui);
  57. void    oulong        (ulong ul);
  58.  
  59. long    ticks2msec    (long ticks);
  60.  
  61.     /* Global variables. */
  62.     
  63. extern io_file *os_bytes_file;    /* The application binary output file. */
  64. extern io_file *os_text_file;    /* The application text   output file. */
  65.  
  66. extern ulong out_bytes_offset;    /* The byte address for dumps in out_bytes. */
  67.  
  68. #endif /* LIBos_h_ */
  69.